﻿<div ng-controller="GHProvideOrderController">
    <div class="row">
        <div class="col-lg-21 col-sm-12 col-xs-12">
            <div class="well with-header flat">
                    <div class="header bg-themeprimary">
                       GH Detail
                    </div>
                <div class="body">
                    <!-- LIST PROVIDE ORDER -->
                    <div class="row">
                        <div class="col-sm-12" style="overflow-y:hidden">
                            <table class="table table-bordered table-striped table-condensed flip-content">
                                <thead class="flip-content bordered-palegreen">
                                    <tr>
                                        <th width="1%">#</th>
                                        <th>Order</th>
                                        <th>User Give</th>
                                        <!--<th>User Get</th>-->
                                        <th>Amount</th>
                                        <th>Room</th>
                                        <th>Status</th>
                                        <th>Option</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr ng-repeat="item in ProvideOrderList" ng-show="List.length != 0">
                                        <td class="numeric">{{$index+1}}</td>
                                        <td>{{item.Id_Order}}</td>
                                        <td>{{item.UserGive}}</td>
                                        <!--<td>{{item.UserGet}}</td>-->
                                        <td>{{item.Amount|number}}</td>
                                        <td>{{item.RoomCode}}</td>
                                        <td>
                                            <span ng-if="item.Status==0">Pendding</span>
                                            <span ng-if="item.Status==1">Sent</span>
                                            <span ng-if="item.Status==2">Confirm</span>
                                        </td>
                                        <td>
                                            <span ng-if="item.Status==0"><a href="javascript:void(0)" ng-click="doApprove(item)" confirm="Are you sure confirm this ?">Approve</a></span>
                                            <span ng-if="item.Status==1"><a href="javascript:void(0)" ng-click="doApprove(item)" confirm="Are you sure confirm this ?">Approve</a></span>
                                            <span ng-if="item.Status==2"><a href="javascript:void(0)"></a></span>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--Success Modal Templates-->
    <script type="text/ng-template" id="WarningModal">
        <div class="modal-header">
            <i class="glyphicon glyphicon-warning-sign"></i>
        </div>
        <div class="modal-title">{{title}}</div>
        <div class="modal-body">
            {{ messeger }}
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-success" ng-click="ok()">OK</button>
            <button type="button" class="btn btn-default" ng-click="cancel()">Cancel</button>
        </div>
    </script>
</div>